<?php

namespace App\Providers;

use App\Listeners\Subscriber\InspectionEventSubscriber;
use App\Listeners\Subscriber\StationReportEventSubscriber;
use Illuminate\Support\Facades\Event;
use App\Listeners\Subscriber\CompanyEvnetSubscriber;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        'App\Events\Event' => [
            'App\Listeners\EventListener',
        ],
    ];

	/**
	 * 注册事件订阅者
	 *
	 * @var array
	 * Date: 01/05/2018
	 * @author George
	 */
	protected $subscribe = [
		CompanyEvnetSubscriber::class,
		InspectionEventSubscriber::class,
		StationReportEventSubscriber::class
	];

    /**
     * Register any events for your application.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();

        //
    }
}
